package com.blockmeta.bbs.immodule.dao;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import java.io.Serializable;

/**
 * Created by author on 2019/2/13.
 * 代办数据 加群或者加好友
 */
@Entity(indexes = {@Index(value = "todoId DESC, whoId DESC", unique = true)})
public class Todo implements Serializable {
    private static final long serialVersionUID = 1223345L;

    public static final int TYPE_ADDFRIEND = 1;
    public static final int TYPE_JOINCIRCLE = 2;

    @Id(autoincrement = true)
    private Long id;
    /**
     * 待办索引
     */
    private long todoId;
    /**
     * 当前用户ID
     */
    private long whoId;
    //是否检查
    private Boolean checked;

    //1数好友 2是群！
    private int type;

    //好友ID
    private long fromId;

    /**
     *群组ID
     */
    private long groupId;
    /**
     * 创建日期
     */
    private int createDate;
    /**
     * 是否完成
     */
    private Boolean complete;
    /**
     * 是否同意
     */
    private Boolean agree;
    /**
     * 添加文字说明
     */
    private String requestMsg;
    /**
     * 处理文字说明
     */
    private String handleMsg;
    /**
     * 处理时间
     */
    private int handleDate;

    private String todoSubject;


    @Generated(hash = 1603077420)
    public Todo(Long id, long todoId, long whoId, Boolean checked, int type,
                long fromId, long groupId, int createDate, Boolean complete,
                Boolean agree, String requestMsg, String handleMsg, int handleDate,
                String todoSubject) {
        this.id = id;
        this.todoId = todoId;
        this.whoId = whoId;
        this.checked = checked;
        this.type = type;
        this.fromId = fromId;
        this.groupId = groupId;
        this.createDate = createDate;
        this.complete = complete;
        this.agree = agree;
        this.requestMsg = requestMsg;
        this.handleMsg = handleMsg;
        this.handleDate = handleDate;
        this.todoSubject = todoSubject;
    }

    @Generated(hash = 1698043777)
    public Todo() {
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public long getTodoId() {
        return todoId;
    }

    public void setTodoId(long todoId) {
        this.todoId = todoId;
    }

    public long getWhoId() {
        return whoId;
    }

    public void setWhoId(long whoId) {
        this.whoId = whoId;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getFromId() {
        return fromId;
    }

    public void setFromId(long fromId) {
        this.fromId = fromId;
    }

    public long getGroupId() {
        return groupId;
    }

    public void setGroupId(long groupId) {
        this.groupId = groupId;
    }

    public int getCreateDate() {
        return createDate;
    }

    public void setCreateDate(int createDate) {
        this.createDate = createDate;
    }

    public Boolean getComplete() {
        return complete;
    }

    public void setComplete(Boolean complete) {
        this.complete = complete;
    }

    public Boolean getAgree() {
        return agree;
    }

    public void setAgree(Boolean agree) {
        this.agree = agree;
    }

    public String getRequestMsg() {
        return requestMsg;
    }

    public void setRequestMsg(String requestMsg) {
        this.requestMsg = requestMsg;
    }

    public String getHandleMsg() {
        return handleMsg;
    }

    public void setHandleMsg(String handleMsg) {
        this.handleMsg = handleMsg;
    }

    public int getHandleDate() {
        return handleDate;
    }

    public void setHandleDate(int handleDate) {
        this.handleDate = handleDate;
    }

    public String getTodoSubject() {
        return todoSubject;
    }

    public void setTodoSubject(String todoSubject) {
        this.todoSubject = todoSubject;
    }
}
